﻿using MQ.Core.Entity.System;
using System;
using System.Collections.Generic;
using System.Text;

namespace MQ.Core.Model.System
{
    /// <summary>
    /// 当前登录用户
    /// </summary>
    public class LoginUser:UserEntity
    {
        public bool IsLogin { set; get; }
        /// <summary>
        /// 所拥有的角色
        /// </summary>
        public List<string> Roles { set; get; }
        /// <summary>
        /// 所在的部门
        /// </summary>
        public List<string> Departs { set; get; }
        /// <summary>
        /// 获取当前登录用户
        /// </summary>
        public static LoginUser Get
        {
            get
            {
                return new LoginUser();
            }
        }
        /// <summary>
        /// 设置当前登录用户
        /// </summary>
        /// <param name="loginUser"></param>
        public static void Set(LoginUser loginUser)
        {

        }
    }
}
